package cn.imvc.app.repositories;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import cn.imvc.app.entities.DealerLevel;
import cn.imvc.data.jpa.repository.IJpqlExecutor;
import cn.imvc.data.jpa.repository.ISqlExecutor;

public interface DealerLevelRepository extends JpaRepository<DealerLevel, Integer>, IJpqlExecutor<DealerLevel>,ISqlExecutor<Object> {
	List<DealerLevel> findByTypeNotAndLevelGreaterThanOrderByLevel(byte type,int level);
	List<DealerLevel> findByOrderByLevelAsc();
	List<DealerLevel> findByLevel(Integer level);
}
